package OOday02;

public class Person {
    String name;
    int age;
    String address;

    public Person(String name, int age, String address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }

    public Person() {
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public String getAddress() {
        return address;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    void eat(){
        System.out.println(name+"正在吃饭----");
    }
    void sleep(){
        System.out.println(name+"正在睡觉----");
    }
    void sayHi(){
        System.out.println("大家好我叫"+name+"今年"+age+"岁了，我住在"+address);
    }
}
